local xunzhi = fk.CreateSkill{
  name = "mod__xunzhi",
}
Fk:loadTranslationTable{
  ["mod__xunzhi"] = "殉志",
  [":mod__xunzhi"] = "准备阶段，你可以失去1点体力。若如此做，你的手牌上限+X（X为场上反贼数）。",
  ["$mod__xunzhi1"] = "春秋大义，自在我心！",
  ["$mod__xunzhi2"] = "成大义者，这点牺牲算不得什么！",
}
xunzhi:addEffect(fk.EventPhaseStart, {
  anim_type = "special",
  can_trigger = function(self, event, target, player, data)
    if target == player and player:hasSkill(self) and player.phase == Player.Start then
      return true
    end
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local n = 0
    for _, p in ipairs(room.alive_players) do
      if p.role == "rebel" then n = n + 1 end
    end
    room:loseHp(player, 1, self.name)
    room:addPlayerMark(player, MarkEnum.AddMaxCards, n)
  end,
})
return xunzhi